﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WordCloudInterface
{
    public partial class InputText : Form
    {
        private Interface parentForm;

        public InputText(Interface form)
        {
            this.parentForm = form;

            InitializeComponent();

            // Change window upper-left icon
            this.Icon = Interface.GetProgramIcon();
        }

        // Process btn
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.textBox1.Text.Length > 0)
            {
                this.parentForm.FromInputText_WordCloudUpdate(this.textBox1.Text + " ");
                this.Close();
            }
        }
    }
}
